#pragma once

namespace SOUI {
  class SPdfPage : public SWindow
  {
    SOUI_CLASS_NAME(SPdfPage, L"pdfpage")
  public:
    SPdfPage(void);
    ~SPdfPage(void);

    void WindowToPdfPage(_In_ const CPoint& point, _Inout_ double& new_x, _Inout_ double& new_y);

  private:

  protected:
    void OnPaint(IRenderTarget *pRT);

    SOUI_MSG_MAP_BEGIN()
      MSG_WM_PAINT_EX(OnPaint)
    SOUI_MSG_MAP_END()

    SOUI_ATTRS_BEGIN()
      ATTR_COLOR(L"colorSelText", m_crSelText, FALSE)
    SOUI_ATTRS_END()

  protected:
    COLORREF m_crSelText;
  };
}
